package com.cjj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cjj.dao.entity.PostLike;

import java.util.List;
import java.util.Map;

public interface PostLikeService extends IService<PostLike> {

    void likePost(Long postId, Long userId);

    void unlikePost(Long postId, Long userId);

    boolean hasLiked(Long postId, Long userId);

    Map<Long, Boolean> batchCheckLikeStatus(List<Long> postIds, Long userId);

}
